package com.killer.controller;

import com.killer.common.ResponseBuilder;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController
@RequestMapping("user")
public class UserController {

    @RequestMapping("login")
    public Object login(HttpServletRequest request){
        request.getSession(true).setAttribute("login", true);
        return new ResponseBuilder().success().build();
    }


}
